package utils

import org.apache.commons.lang3.time.FastDateFormat

/**
  * 计算终止所用事时间
  * Created by Administrator on 2018/03/25.
  */
object TimeUtils {

  private val fastDateFormat = FastDateFormat.getInstance("yyyyMMddHHmmssSSS")

  def caluCostTime(start:String ,end : String ):Long={

    val startTime: Long = fastDateFormat.parse(start).getTime

    val endTime: Long = fastDateFormat.parse(end).getTime
    endTime - startTime

  }

}
